import Vue from "vue";
import VueRouter from "vue-router";
import Login from "../views/Login.vue";
import SuperAdmin from "../views/SuperAdmin.vue";
import Registe from "../views/Registe.vue";
import User from "../views/User.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "登录界面",
    component: Login
  },
  {
    path: "/super-admin",
    name: "超级管理界面",
    component: SuperAdmin
  },
  {
    path: "/registe",
    name: "注册界面",
    component: Registe
  },
  {
    path: "/user",
    name: "用户界面",
    component: User
  }
];

const router = new VueRouter({
  routes
});

export default router;
